﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using Lehavi.Controls;
using Lehavi.Controls.UI;

public partial class Account_Register : System.Web.UI.Page
{

	protected void Page_Load(object sender, EventArgs e)
	{
		//InitScript();
		//InitValidation();
		//stages.CurrentStage = 3;
		//if (!IsPostBack)
		//    LoadData();
	}

	//private void InitScript()
	//{
	//    this.RegisterJQuery();
	//    this.RegisterUiCore();
	//    this.RegisterUiDatePicker();
	//}

	//private void LoadData()
	//{

	//}

	//private void InitValidation()
	//{
	//    vFirstName.GroupName("register").Required("*");
	//    vPassword.GroupName("register").Required("*").MinLength(6, "Too short").MaxLength(20, "Too long");
	//    // vRePass.GroupName("register").EqualTo(tbPass, "*");
	//    vEmail.GroupName("register").Required("*").MaxLength(150, "Too long").Email("*").Remote("/Service/WebsiteService.asmx/IsUsernameFree", val => !Logic.BusinessLogic.Users.IsUsernameExists(val), "Email is in use.");
	//    //vUsername.GroupName("register").Required("Username is required.").MinLength(6).MaxLength(100).Remote("/Service.asmx/CheckUsernameExists", val => !MembershipService.IsUsernameExists(val), "This username is in use.");
	//    /* vEmail.GroupName("register").Required().Email().MaxLength(100).Remote("/Service.asmx/CheckEmailExists", val => !MembershipService.IsEmailExists(val), "This email is in use.");
	//     vFirstName.GroupName("register").Required().MaxLength(100);
	//     vLastName.GroupName("register").Required().MaxLength(100);
	//     */
	//}

	//protected void lbtnJoin_Click(object sender, EventArgs e)
	//{
	//    if (!Page.IsValid) return;

	//    BO.User user = new BO.User
	//    {
	//        Email = tbemail.Text,
	//        Username = tbemail.Text, // ToLower()?
	//        FirstName = tbFirstName.Text,
	//        LastName = tbLastName.Text,
	//        Password = BLL.Encryption.Encrypt(tbPass.Text),			
	//        LastModified = DateTime.Now,
			 

	//    };

	//    //Users.Register(user);		

	//    BLL.Authentication.Login(user.Username, tbPass.Text);

	//    //Response.Redirect(AppParams.URLs.RegistrationAddFriendsUrl());
	//}	

}
